package com.mysiteforme.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.mysiteforme.admin.base.DataEntity;

/**
 * <p>
 * 新闻
 * </p>
 *
 * @author wangl
 * @since 2018-05-16
 */
public class News extends DataEntity<News> {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
	private String title;
    /**
     * 内容
     */
	private String content;
    /**
     * 作者
     */
	private String anthor;
    /**
     * 所属栏目
     */
	@TableField("channe_id")
	private Long channelId;
	@TableField(exist = false)
	private BlogChannel blogChannel;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	public String getAnthor() {
		return anthor;
	}

	public BlogChannel getBlogChannel() {
		return blogChannel;
	}

	public void setBlogChannel(BlogChannel blogChannel) {
		this.blogChannel = blogChannel;
	}

	public void setAnthor(String anthor) {
		this.anthor = anthor;
	}
	public Long getchannelId() {
		return channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}


	@Override
	public String toString() {
		return "News{" +
			", title=" + title +
			", content=" + content +
			", anthor=" + anthor +
			", channelId=" + channelId +
			"}";
	}
}
